package xiu_xiu.base;

import android.app.Application;
import android.graphics.Typeface;

import org.xutils.x;

public class MyApplication extends Application {
    /**
     * 全局context
     */
    public static MyApplication myApplication;
    /**
     * 字体样式
     */
    public Typeface typeface = null;
    @Override
    public void onCreate() {
        super.onCreate();

        init();

    }

    private void init() {
        x.Ext.init(this);
        x.Ext.setDebug(Global.DEBUG);
        myApplication=this;
        typeface = Typeface.createFromAsset(getAssets(), "fzlt.ttf");
    }


    public void onTerminate() {
        super.onTerminate();
    }


    @Override
    public void onLowMemory() {
        super.onLowMemory();
    }
}
